<template>
    <div>
        <Modal v-model="editModal" label-position="left" :mask-closable="false" width="600" title="角色关联人员">
            <div style="text-align:center" class="editModal">
                <Table border :columns="columns1" :data="data1"></Table>
            </div>
            <div slot="footer"></div>
        </Modal>
    </div>
</template>

<script type="text/ecmascript-6">
    import axios from 'axios'
    export default {
        name: 'editModal',
        props: {
            perInfo: {
                type: Object
            },
            data1: {
                type: Array
            }
        },
        data () {
            return {
                editModal: false,
                //表格的属性名
                columns1: [
                    {
                        title: '用户名',
                        key: 'employeeName'
                    },
                    {
                        title: '账户',
                        key: 'userName'
                    },
                    {
                        title: '所属部门',
                        key: 'orgStructId'
                    }
                ]
            }
        },
        watch: {
            'editModal' (val) {
                if (val) {
                    this.editForm = JSON.parse(JSON.stringify(this.perInfo))
                }
            }
        },
        created () {

        },
        methods: {

        }
    }
</script>